<?php

/* @var $factory \Illuminate\Database\Eloquent\Factory */

use Faker\Generator as Faker;
use Illuminate\Support\Str;

$factory->define(App\Activity::class, function (Faker $faker) {
    return [
        'title' => $faker->catchPhrase,
        'description' => $faker->text(50),
        'price' => $faker->randomFloat(2,0,200),
        'deadline' => $faker->dateTime->format('Y-m-d H:i:s'),
        'start_time' => $faker->dateTime->format('Y-m-d H:i:s'),
        'end_time' => $faker->dateTime->format('Y-m-d H:i:s'),
        'location' => $faker->address,
        'img' => Str::start(Str::finish($faker->numberBetween(1,500),'/360/250'),'https://picsum.photos/id/'),
        'status' => 0
    ];
});
